from config import BLOCKED_IPS
from ipfilter import IPFilter
fw = IPFilter.from_list(BLOCKED_IPS)

test = [
    '127.0.0.1',
    '127.0.0.2',
    '10.128.153.4',
    '10.128.153.32',
    '172.16.153.32',
    '172.18.153.32',
    '10.128.153.100',
    '10.128.122.100',
    '10.128.152.1',
    '10.128.190.32',
]

for ip in test:
    print(ip, fw.is_blocked(ip))
